package org.common.mongo.entity;


import org.common.mongo.EntityType;
import org.common.mongo.EntityTypeEnum;

/**
 * 角色核心数据
 */
@EntityType(EntityTypeEnum.Role)
public class RoleEntity extends BaseEntity {
    /**
     * 角色id
     */
    private long roleId;
    /**
     * 账号id
     */
    private long accountId;
    /**
     * 名字
     */
    private String name;
    /**
     * 等级
     */
    private int level;

    public long getRoleId() {
        return roleId;
    }

    public void setRoleId(long roleId) {
        this.roleId = roleId;
    }

    public long getAccountId() {
        return accountId;
    }

    public void setAccountId(long accountId) {
        this.accountId = accountId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
